package com.xinqi.modules.databank.v2.convert;


import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.databank.dto.req.*;
import com.xinqi.modules.databank.dto.rsp.CourseInteractionSubmitResult;
import com.xinqi.modules.databank.dto.rsp.ResourceInteractionLogResultDTO;
import com.xinqi.modules.databank.dto.rsp.ResourceStudentLogUserResultDTO;
import com.xinqi.modules.databank.v2.domain.CourseResourceInteractionLogEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 课程资料库学生答题表转换
 *
 * @author: system
 * @date: 2023/03/14
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseResourceInteractionLogConvert {

    public abstract CourseResourceInteractionLogEntity create(ResourceInteractionLogCreateDTO s);

    public abstract List<ResourceStudentLogUserResultDTO> convert(List<ResourceInteractionLogResultDTO> s);

    public abstract List<ResourceInteractionLogResultDTO> convertSubmitResult(List<CourseInteractionSubmitResult> list);

}
